import request from "@/utils/request.js";

// 可以和后端代码不那么严丝合缝的对应
// 获取所用用户数据
const basePath = "/drug_disturb"
// 添加用户
export function deliver(data) {
    return request({
        url: basePath,
        method: "put",
        data: data
    });
}

// 获取支付信息
export function selectInfo(data) {
    return request({
        url: basePath+'/query',
        method: "put",
        data:data
    });
}

// 退药
export function Dwithdrawal(data) {
    return request({
        url: basePath+'/withdrawal',
        method: "put",
        data:data
    });
}

